import { queryByDriverisLicense } from './driver'

export function isLicenseExist(rule, value, callback) {
  console.log(value)
  console.log(rule)
  queryByDriverisLicense(value)
    .then(response => callback(new Error('当前证件已存在')))
    .catch(response => callback())
}
